package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.EquipmentDetailView
import com.hlhj.carview.bean.EquipmentDetailBean
import com.hlhj.carview.module.EquipmenDetailtModule

/**
 * Created by Never Fear   on 2018\12\21 0021.
Never More....
 */
class EquipmentDetailPresenter :BasePresenter<EquipmenDetailtModule,EquipmentDetailView>(), EquipmentDetailView {
    override fun setDetail(equipmentDetailBean: EquipmentDetailBean) {
        view?.setDetail(equipmentDetailBean)
    }

    fun getDetail(did:Int,c:Context){
        module?.getDetail(did, c)
    }
    override fun createModule() {
        module=EquipmenDetailtModule()
        module?.lis=this
    }
}